#ifndef CANIMATION_H
    #define CANIMATION_H
 
#include <SDL.h>
 
class CAnimation
{
    private:
        int CurrentFrame;
        int FrameInc;
        int FrameRate; //Milliseconds
        long OldTime;
        bool OneTimeAnimation;
        bool* OneTimeCallback;
 
    public:
        int MaxFrames;
        bool Oscillate;
        
        CAnimation();
        void OnAnimate();
        void SetFrameRate(int Rate);
        void SetCurrentFrame(int Frame);
        int GetCurrentFrame();
        void SetOneTimeAnimation(bool* input);
};
 
#endif